import request from '@/utils/request'

// 查询ByShopCar列表
export function listShopcar(query) {
  return request({
    url: '/system/shopcar/list',
    method: 'get',
    params: query
  })
}

// 查询ByShopCar详细
export function getShopcar(id) {
  return request({
    url: '/system/shopcar/' + id,
    method: 'get'
  })
}

// 新增ByShopCar
export function addShopcar(data) {
  return request({
    url: '/system/shopcar',
    method: 'post',
    data: data
  })
}

// 修改ByShopCar
export function updateShopcar(data) {
  return request({
    url: '/system/shopcar',
    method: 'put',
    data: data
  })
}

// 删除ByShopCar
export function delShopcar(id) {
  return request({
    url: '/system/shopcar/' + id,
    method: 'delete'
  })
}
